package com.letoken.platform.repo.sss.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统公告
 * </p>
 *
 * @author 作者
 * @since 2024-09-05
 */
@Getter
@Setter
@TableName("admin_announcement")
@ApiModel(value = "AdminAnnouncement对象", description = "系统公告")
public class AdminAnnouncement extends Model<AdminAnnouncement> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("封面图片")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty("是否展示 1展示 0不展示")
    @TableField("is_show")
    private Boolean isShow;

    @ApiModelProperty("是否置顶")
    @TableField("is_top")
    private String isTop;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("父id (0表示自己就是父标题)")
    @TableField("pid")
    private Long pid;

    @ApiModelProperty("语言地区 cn-中文,en-英文,jpn-日文,kr-韩文")
    @TableField("lang")
    private String lang;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("开始时间")
    @TableField("publish_time")
    private LocalDateTime publishTime;

    @ApiModelProperty("结束时间")
    @TableField("expire_time")
    private LocalDateTime expireTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
